﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<WRSManagementSystem.DomainModel.Entities.StoreItem>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Details
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Szczegóły towaru</h2>

    <fieldset>
        <legend>Przedmiot</legend>
        
       <%-- <div class="display-label">Id</div>
        <div class="display-field"><%= Html.Encode(Model.Id) %></div>--%>
        
        <div class="display-label">Nazwa</div>
        <div class="display-field"><%= Html.Encode(Model.Name) %></div>

        <div class="display-label">Typ</div>
        <div class="display-field"><%= Html.Encode(Model.Type.Name) %></div>
        
        <div class="display-label">Opis</div>
        <div class="display-field"><%= Html.Encode(Model.Description) %></div>
        
        <div class="display-label">Ilość</div>
        <div class="display-field"><%= Html.Encode(Model.Quantity) %></div>

        <div class="display-label">Jednostka</div>
        <div class="display-field"><%= Html.Encode(Model.Type.Unit.ShortCut) %></div>
        
        <div class="display-label">Cena jednostkowa</div>
        <div class="display-field"><%= Html.Encode(Model.Price) %></div>
        
    </fieldset>
    <p>
        <%=Html.ActionLink("Edytuj", "Edit", new {  id=Model.Id }) %> |
        <%=Html.ActionLink("Wróć", "Index") %>
    </p>

</asp:Content>

